<?php

use yii\db\Migration;

class m170423_071053_add_openid_column extends Migration
{
    public function up()
    {
        $this->addColumn('member','openid',$this->string()->defaultValue(0)->comment('微信openid'));
    }

    public function down()
    {
        echo "m170423_071053_add_openid_column cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
